package com.java.tutorials.solr;

import org.apache.solr.client.solrj.beans.Field;

/**
 * Created by xuzhike on 2016/1/5.
 */
public class Address {
    @Field("addressName")
    private String addressName;

    @Field("number")
    private int number;

    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Address{" +
                "addressName='" + addressName + '\'' +
                ", number=" + number +
                '}';
    }
}
